//
//  C3Atom.m
//  精通Objective-C
//
//  Created by 花强 on 2017/11/6.
//  Copyright © 2017年 花强. All rights reserved.
//

#import "C3Atom.h"


@implementation C3Atom

-(instancetype)init{
    if (self = [super init]) {
        _chemicalElement = @"None";
    }
    return self;
}

-(NSUInteger)massNumber{
    return self.protons + self.neutrons;//原子的质量数等于质子数加中子数的和
}
-(NSString *)logInfo{
    return NSStringFromClass([self class]);
}
@end
